<?php

namespace app\base\model\member;

use app\common\model\CommonModel;



class MemberCouponModel extends CommonModel{

    protected  $name = 'base_member_coupon';

    protected  $pk   = 'member_coupon_id';



    public function getIsExpireAttr($value,$data)

    {

        return $data['valid_end_time']<date("Y-m-d") ? 1 : 0;

    }

}

